package com.hb.trade.api.expert;

import cn.hutool.extra.spring.EnableSpringUtil;
import org.apache.shiro.spring.config.web.autoconfigure.ShiroWebFilterConfiguration;
import org.fzzn.core.apidoc.EnableApiDoc;
import org.fzzn.core.auth.shiro.anno.EnableFzznShiro;
import org.fzzn.core.cache.inmemory.InMemoryService;
import org.fzzn.core.file.anno.EnableFileManage;
import org.fzzn.core.file.config.FileBaseConfig;
import org.fzzn.core.file.entity.OssProperties;
import org.fzzn.core.file.service.DownloadService;
import org.fzzn.core.web.anno.EnableWebConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

@EnableApiDoc
@EnableWebConfig
@EnableFileManage
@EnableFzznShiro
@EnableSpringUtil
@EnableFeignClients(basePackages = {
        "com.hb.trade.client.*"
})
@EnableDiscoveryClient
@SpringBootApplication(exclude = {
        DataSourceAutoConfiguration.class,
        ShiroWebFilterConfiguration.class
})
@Import({InMemoryService.class, DownloadService.class})
public class ApiExpertApplication {
    public static void main(String[] args) {
        SpringApplication.run(ApiExpertApplication.class, args);
    }
}
